home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / graphics / x1.zip / VGA240.H < prev    next >
Text File  |  1993-05-04  |  2KB  |  76 lines

  1. /*
  2. ** VGA240.H
  3. **
  4. ** Various functions for working in the 320x240 "tweaked" mode of the VGA
  5. **
  6. ** Documentation is in VGA240.DOC
  7. **
  8. */
  9.  
  10. /* This next line is for compiling with a C++ compiler */
  11. #ifdef __cplusplus
  12. extern "C"
  13. {
  14. #endif
  15.  
  16. #define asmdecl extern void cdecl
  17.  
  18. /* Initialization routine and deinitialization routine
  19. */
  20. asmdecl graphinit(int width,int psize);
  21.  
  22. /* Graphics primitives
  23. */
  24. asmdecl line(int x1,int y1,int x2,int y2,int c);
  25. asmdecl box(int x1,int y1,int x2,int y2,int c);
  26. asmdecl hline(int x1,int x2,int y,int c);
  27. asmdecl vline(int x1,int y1,int y2,int c);
  28. asmdecl hbar(long addr,unsigned int count,int c);
  29.  
  30. /* Palette routines
  31. */
  32. asmdecl setDAC(char cval,char red,char green,char blue);
  33.  
  34. /* Page routines
  35. */
  36. asmdecl copypage(int src,int dest);
  37. asmdecl usepage(int p);
  38. asmdecl showpage(int p);
  39. asmdecl clearpage(int c);
  40. asmdecl flippage(void);
  41. asmdecl copyregion(int spage,int sx1,int sy1,int sx2,int sy2,int dx1,int dy1);
  42.  
  43. /* Video buffer start selecting routine
  44. */
  45. asmdecl setstart(int addr);
  46.  
  47. /* Video mode selecting routine
  48. */
  49. asmdecl textmode(int modenum);
  50.  
  51. /* Font displaying routine (monochrome bitmap really)
  52. **
  53. **
  54. ** fontdata points to the following information:
  55. ** *(fontdata+0)   : Font height in pixels.
  56. ** *(fontdata+1)   : Font width in pixels.
  57. ** *(fontdata+2+n) : Font bitmap. Stored as a series of complete bytes,
  58. **                   the number of which should be (width+7)/8 per row.
  59. */
  60. asmdecl writechar2(int x,int y,int c,char far *fontdata);
  61.  
  62.  
  63. /* Bitmap routines
  64. */
  65. asmdecl putblock(void far *buffer);
  66. asmdecl getblock(int x1,int y1,int sizex,int sizey,void far *buffer);
  67.  
  68. asmdecl mcopyregion(int page, int sx1,int sy1,int sx2,int sy2,
  69.             char far *mask,int dx1,int dy2);
  70. asmdecl genbmask(char far *source,char far *mask,char transp);
  71. asmdecl cnvbmask(char far *mask,int size);
  72. asmdecl putimage(int x,int y, char far *image);
  73. #ifdef __cplusplus
  74. }
  75. #endif
  76.